import request from '@/utils/request'
export function list(params) {
  return request({
    url: '/admin/shop/list',
    method: 'get',
    params: params
  })
}
export function lbsList(params) {
  return request({
    url: '/admin/shop/lbsList',
    method: 'get',
    params: params
  })
}

export function save(shop) {
  return request({
    url: '/admin/shop/save',
    method: 'post',
    data: shop
  })
}

export function del(ids) {
  return request({
    url: '/admin/shop/del/' + ids,
    method: 'post'
  })
}

export function update(shop) {
  return request({
    url: '/admin/shop/update',
    method: 'post',
    data: shop
  })
}

export function find(id) {
  return request({
    url: '/admin/shop/find/' + id,
    method: 'get'
  })
}

export function getAuthUrl(data,params) {
  return request({
    url: '/eleme/getAuthUrl',
    method: 'post',
    data: data,
    params:params
  })
}

export function selectToken(data,params) {
  return request({
    url: '/eleme/selectToken',
    method: 'post',
    data: data,
    params:params
  })
}

export function listByOwnerPhone(params) {
  return request({
    url: '/admin/shop/listByOwnerPhone',
    method: 'get',
    params:params
  })
}

export function binding(params) {
  return request({
    url: '/admin/shop/binding',
    method: 'post',
    params: params,
  })
}


export function unbound(params) {
  return request({
    url: '/admin/shop/unbound',
    method: 'post',
    params: params,
  })
}

